using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Templates_Login : BaseTemplate
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //flashHeader.Variables.Add("SiteRoot", AcmsContext.SiteRoot);
            SetFlashHeaderVariables(flashHeader);
        }

    }

    protected void register_UserRegistering(object sender, Acms.AcmsControls.UserRegisterEventArgs e)
    {
        e.User.SetCustomProperty("Brand", txtBrand.Text);
        e.User.SetCustomProperty("OptOut", cbOptOut.Checked.ToString());
    }

    protected void register_UserRegistered(object sender, Acms.AcmsControls.UserRegisterEventArgs e)
    {
        pnlLogin.Visible = false;
        updLogin.Update();
    }

}
